package com.wlyuan.open.constants;


import lombok.Getter;

/**
 * @author lijing
 */
@Getter
public enum CustomerTypeEnum {
    OFFLINE("线下", 0),
    ONLINE("线上", 1),
    MYSELF("自己", 2);

    private Integer value;
    private String name;

    CustomerTypeEnum(String name, Integer value) {
        this.value = value;
        this.name = name;
    }

    public static boolean isOffline(Integer val) {
        return OFFLINE.value.equals(val);
    }

    public static boolean isOnline(Integer val) {
        return ONLINE.value.equals(val);
    }

    public static boolean isMySelf(Integer val) {
        return MYSELF.value.equals(val);
    }
}
